package com.smartthinking.CICPNL.home.activity;

import android.app.Activity;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.view.View;

import com.smartthinking.CICPNL.R;

public class MenuLateral extends Activity {

	private Intent intent;
	public void onConfigurationChanged(Configuration newConfig) {
		super.onConfigurationChanged(newConfig);

		// Checks the orientation of the screen
		 
	}
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ui_menulateral);

	}

	public void salir(View v) {
		finish();
	}

	public void abrirCalendario(View v) {

		intent = new Intent(MenuLateral.this, Calendario.class);

		startActivity(intent);
		finish();
	}

	public void abrirInformacion(View v) {
		intent = new Intent(MenuLateral.this, InformacionMenu.class);

		startActivity(intent);
		finish();
	}

	public void abrirHoteles(View v) {

		intent = new Intent(MenuLateral.this, Hoteles.class);
		intent.putExtra("PUT_TITULO", "Hoteles");
		startActivity(intent);
		finish();
	}

	public void abrirRestaurantes(View v) {

		intent = new Intent(MenuLateral.this, Restaurantes.class);
		intent.putExtra("PUT_TITULO", "Restaurantes");
		startActivity(intent);
		finish();

	}

	public void abrirEventos(View v) {

		intent = new Intent(MenuLateral.this, Eventos.class);

		startActivity(intent);
		finish();
	}

}
